package com.looookme.shaozhuo.broadcast_service;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;

public class MyService extends Service {
    public MyService() {
    }

    @Override
    public void onCreate() {
        super.onCreate();
        Log.i("AAAAA", "Service onCreate");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.i("AAAAA", "Service onDestory");
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.i("AAAAA", "Service onStart");
        return super.onStartCommand(intent, flags, startId);
    }

    @Override
    public boolean onUnbind(Intent intent) {
        Log.i("AAAAA", "Service onUnBind");
        return super.onUnbind(intent);
    }

    @Override
    public void onRebind(Intent intent) {
        Log.i("AAAAA", "Service onReBind");
        super.onRebind(intent);
    }

    @Override
    public IBinder onBind(Intent intent) {
        Log.i("AAAAA", "Service onBind");

        return new Binder();
    }
}
